<?php
    
    class Piano extends Index{
    	
		public function __construct(){
			parent::__construct();
		}
		
		public function setPlugIn(){
			return array("saetv2.ex.class.php","page.php");
		}
		
		public function Index(){
			$this->mod = "Piano";
			$this->template("parent");
		}
		
		public function AjaxShare(){
			$this->_T['share'] = DB::fetch_row("select * from `ntwt_site_con` where `id`='3'");
			echo json_encode($this->_T);
		}
		
		public function Share(){
			$share=$_POST['share'];
			$this->weiboUser = new SaeTClientV2(WB_AKEY,WB_SKEY,$_SESSION['token']['access_token']);
			$this->weiboUser->update($share);
			$this->showmessage("谢谢您的分享", "?m=Index/Index", 2000 ,"我弹我听微博应用");
		}
		
    }











?>